﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WxCore.Entity;

namespace WxApp.Entity
{

    [SugarTable("sys_org_user", TableDescription = "系统用户表")]
    [Description("系统用户表")]
    public class UserEntity : BaseMainEntity
    {
        [SugarColumn(ColumnDescription = "部门ID", IsNullable = true, Length = 36)]
        public string depid { get; set; }


        [SugarColumn(ColumnDescription = "昵称", IsNullable = true, Length = 64)]
        public string ninam { get; set; }

        [SugarColumn(ColumnDescription = "层级", IsNullable = true, Length = 1000)]
        public string tier { get; set; }

        [SugarColumn(ColumnDescription = "职务", IsNullable = true, Length = 255)]
        public string job { get; set; }

        [SugarColumn(ColumnDescription = "用户名", IsNullable = true, Length = 32)]
        public string usnam { get; set; }

        // [JsonIgnore]
        [SugarColumn(ColumnDescription = "密码", IsNullable = true, Length = 64, IsOnlyIgnoreUpdate = true)]
        public string pacod { get; set; }

        [SugarColumn(ColumnDescription = "邮箱", IsNullable = true, Length = 64)]
        public string email { get; set; }

        [SugarColumn(ColumnDescription = "手机号", IsNullable = true, Length = 32)]
        public string monum { get; set; }

        [SugarColumn(ColumnDescription = "排序号", IsNullable = true)]
        public int ornum { get; set; }

        [SugarColumn(ColumnDescription = "ldap层级名称", IsNullable = true, Length = 1000)]
        public string ldnam { get; set; }

        [SugarColumn(ColumnDescription = "账号标签", IsNullable = true, Length = 32)]
        public string label { get; set; }

        [SugarColumn(ColumnDescription = "账号类型", IsNullable = true, Length = 32)]
        public string type { get; set; }

        [SugarColumn(ColumnDescription = "通知阅读记录", IsNullable = true, Length = 32)]
        public string relog { get; set; }

        [SugarColumn(ColumnDescription = "缓存标记", IsNullable = true)]
        public bool catag { get; set; }

        [SugarColumn(ColumnDescription = "最后登录时间", IsNullable = true)]
        public DateTime lalot { get; set; }

        [SugarColumn(ColumnDescription = "最后登录IP", IsNullable = true, Length = 20)]
        public string laloi { get; set; }
    }
}
